package com.rran.study.chat.common.exception;

import lombok.Data;

/**
 * @author yy
 * @Type ValidateException.java
 * @Desc
 * @date 2020/8/11 23:48
 */
@Data
public class ValidateException extends RuntimeException implements IError{

    String errorCode;
    String errorMsg;

    public ValidateException(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }
}
